package com.itxiao.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
/**
 * 商品表(Spu)表实体类
 *
 * @author makejava
 * @since 2025-10-12 17:07:26
 */
@Data
@TableName("spu")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Spu {
    //主键
    @TableId(type = IdType.AUTO)
    private Long id;
    //商品标题
    private String title;
    //商品描述
    private String description;
    //商品编码
    private String itemCode;
    //分类路径
    private String categoryPath;
    //主图
    private String thumbnail;
    //轮播图
    private String images;
    //视频地址
    private String video;
    //商品规格属性
    private String skuSpaces;
    //价格
    private Long salePrice;
    //商品状态
    private Integer status;
    //原因
    private String reason;
    //创建时间
    private Date createTime;
    //最后更新时间
    private Date updateTime;
    //库存
    private Long stock;
    //商品类型 
    private Integer saleType;
    //销量
    private Integer sale;
    //运费模板id

    private Long expressTemplateId;
    //运费（单位：分）
    private Long expressFee;
    //建议销售价
    private Long suggestPrice;
    //成本价
    private Long costPrice;
    //店铺id
    private Integer shopId;
    //排序
    private Integer sort;

}
